@extends('default.mobile.layouts.personalPublic')
@section('title','浏览企业-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/personal/common.css')}}">
@endsection
{{--头部标签--}}
@section('tag','浏览企业')
@section('link') href="{{url('mobile/personal/welcome')}}" @endsection

{{--主体内容--}}
@section('content')
    <div class="list_box">
        <ul class="menu">
            <li><a href="{{url('mobile/personal/browse_job')}}">浏览职位</a></li>
            <li  class="on"><a href="{{url('mobile/personal/browse_company')}}">浏览企业</a></li>
        </ul>

        @if(count($browse_company) > 0)
            @foreach($browse_company as $v)

                <div class="list_info company_info">
                    <a href="{{url('mobile/comabout_'.idEncryption($v->com_id).'.html')}}">
                        <dl>
                            <dt><span class="title">{{str_limit($v->company_name,24)}}</span><time>{{$v->created_at}}</time></dt>
                            <dd>
                                <span class="default">{{str_limit($v->region,12)}}</span><b>|</b>
                                <span class="default">{{str_limit($v->comkind,10)}}</span><b>|</b>
                                <span class="default">{{str_limit($v->industry,16)}}</span>
                            </dd>
                            @if(count($v->temptation) > 0)
                                <dd class="temptation">
                                    <div class="cate">
                                        @foreach($v->temptation as $kk => $vv)
                                            <span>{{$vv}}</span>
                                        @endforeach
                                    </div>
                                </dd>
                            @endif
                            <dd><p>共{{$v->companyJobCount}}个在招职位</p></dd>
                        </dl>
                    </a>
                </div>
            @endforeach
        @else
            <div class="list_empty">
                <span class="norecord"></span>
                <span class="sorry">抱歉，没有找到符合您条件记录！</span>
            </div>
        @endif
    </div>
    <!-- E 浏览公司-->
    <!-- B分页 -->
    <div class="page">
        @if($browse_company->currentPage() <= 1)
            <a class="btn_gary previous ">上一页</a>
        @else
            <a href="{{$browse_company->previousPageUrl()}}" class="previous">上一页</a>
        @endif
        <span><em>{{$browse_company->currentPage()}}</em>/{{$browse_company->lastPage()}}</span>
        @if($browse_company->currentPage()  ==  $browse_company->lastPage())
            <a class="next btn_gary">下一页</a>
        @else
            <a href="{{$browse_company->nextPageUrl()}}" class="next">下一页</a>
        @endif
    </div>
    <!-- E分页 -->
@endsection

@section('footerjs')
    @parent
@endsection